package main

import "fmt"

//map的遍历
func main() {
	m := make(map[string]string, 10)
	m["a"] = "hello"
	m["b"] = "world"
	for key, value := range m {
		fmt.Println("key=", key, "value=", value)
	}
	var ms []map[string]string
	ms = make([]map[string]string, 10)
	ms[0] = make(map[string]string)
	ms[0]["a"] = "hell0"
	ms[0]["b"] = "world"

	m2 := make(map[string]string)
	m2["1"] = "str"
	m2["2"] = "wor"
	ms = append(ms, m2)
	fmt.Println(ms)
}
